// src/types/Login.ts

// 账号登录参数
export interface AccountLoginParams {
  account: string
  password: string
}

// 用户信息接口
export interface UserInfo {
  id: number
  account: string
  realName: string
  phone: string
  email: string
  userCode: string
  department: number
  createTime: string
  avatarUrl: string
}

// 登录响应数据接口
export interface LoginResponseData {
  token: string
  user: UserInfo
}

// 账号登录响应
export interface AccountLoginResponse {
  success: boolean
  code: string
  message: string
  data: LoginResponseData
}

// 邮箱登录响应
export interface EmailLoginResponse {
  success: boolean
  code: string
  message: string
  data: LoginResponseData
}

// 发送邮箱验证码参数
export interface EmailCodeParams {
  email: string
}

// 发送邮箱验证码响应
export interface EmailCodeResponse {
  success: boolean
  code: string
  message: string
  data: object
}

// 邮箱登录参数
export interface EmailLoginParams {
  email: string
  code: string
}

// 邮箱登录响应
export interface EmailLoginResponse {
  success: boolean
  code: string
  message: string
  data: LoginResponseData
}
